package aop_advice;

import java.lang.reflect.Method;

import org.springframework.aop.MethodBeforeAdvice;

public class LoggingBeforeAdvice implements MethodBeforeAdvice {
	
	//returnValue : 메서드에 의해서 변환되는 값
	//method : 호출되는 메서드
	//arg1: 메서드의 매개변수
	//target: method invocation.null값

	public void before(Method method, Object[] argl, Object target) throws Throwable {
		String methodName = method.getName();
		System.out.println(methodName + " is calling");
	}
	
}
